class Animal :
    def __init__(self,name,age) -> None:
        self.name = name
        self.age  = age
    def eat(self) :
        print(f"{self.name}正在吃东西,年龄{self.age}")
    def sleep(self) :
        print(f"{self.name}正在睡觉,年龄{self.age}")
class Dog(Animal):
    pass
class Cat(Animal):
    def play(self):
        print(f"{self.name}正在玩耍,年龄{self.age}")
if __name__ == "__main__" :
    my_dog = Dog("小汪",4)
    my_dog.eat()
    my_cat = Cat("小喵",2)
    my_cat.play()
